package com.heima.mapper;

import com.github.pagehelper.Page;
import com.heima.pojo.dto.PartnerCollectDto;
import com.heima.pojo.vo.AmountVo;
import com.heima.pojo.vo.PartnerCollectVo;
import com.heima.pojo.vo.RegionCollectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Mapper
public interface ReportMapper {
    Integer monthOrderCount(Date start, Date end);

    Long monthOrderAmount(Date start, Date end);

    List<AmountVo> queryAmount(Date start, Date end);

    List<RegionCollectVo> regionCollect(Date start, Date end);

    Page<PartnerCollectVo> partnerCollect(PartnerCollectDto dto);

    Integer getTotalBill(Date start, Date end, Long id);
}
